﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QueryPropertyDialog.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.CustomQuery.QueryPropertyDialog" %>

<form id="QueryPropertyDialog">
  <div class="pageContent" >
    
    <div class="pageFormContent" layoutH="60">
         
        <dl>
            <dt>编号（对应sql）：</dt>
            <dd>
            <input type="text" prop="Code"/>
            </dd>
        </dl>    
        <dl>
            <dt>名称（用于展示）：</dt>
            <dd>
            <input type="text" prop="Text"/>
            </dd>
        </dl>    
        <dl>
            <dt>格式化取值：</dt>
            <dd>            
            <input type="text" prop="Format"/>
            </dd>
        </dl> 
        <dl>
            <dt>值说明：</dt>
            <dd>
            <input type="text" prop="Memo"/>
            </dd>
        </dl>    
        
        <dl>
            <dt>值类型：</dt>
            <dd>
            <select prop="PropType">
            <option value="-1">无</option>
            <option value="string">字符串</option>
            <option value="number">数字</option>
            </select>
            </dd>
        </dl>   
        <dl>
            <dt>比较方式：</dt>
            <dd>
            <select prop="CompaireType">
            <option value="-1">无</option>
            <option value="Like">相似</option>
            <option value="Equal">等于</option>
            <option value="Ge">大于等于</option>
            <option value="Le">小于等于</option>
            <option value="Gt">大于</option>
            <option value="Lt">小于</option>
            </select>
            </dd>
        </dl> 
	</div>
	
    <div class="formBar">
    <input id="submit_op" name="submit_op" type="hidden" />
	    <ul>
			<li>
	        <div class="buttonActive"><div class="buttonContent"><button  type="button"  onclick="saveQueryPropertyItem();" class="close">保存</button></div></div>
            </li>
            
			<li>
		    <div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
			</li>
		</ul>
    </div>
    
    </div>
    
</form>
        <script type="text/javascript">
    initializeGridItemInDialog($('#QueryPropertyDialog'), <%=Request["object"] %>);
    function saveQueryPropertyItem(){
//        var val = $('#QueryPropertyDialog').find('[prop=Code]').val();
//        if(val == ''){
//            $('#QueryPropertyDialog').find('[prop=Code]').val(new Date().valueOf());
//        }
        return saveDialogDataAsDialogResult($('#QueryPropertyDialog'));
    }
    </script>